import AsyncStorage from '@react-native-async-storage/async-storage'
export const getItem = async (key) => {
  try {
    const res = await AsyncStorage.getItem('persist:' + key)
    if (res) return JSON.parse(JSON.parse(res).userReducer)
  } catch(err) {
    console.log(err)
  }
}